<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>下载APP</title>
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> 
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/app/css/download.css"/>
		<script src="__PUBLIC__/app/js/jquery-2.2.3.js"></script>
	</head>
	<body>
		<div class="container">
			<div class="top">
				<img src="__PUBLIC__/app/img/dixia@2x.png" class="first" />
				<p>明星保险人</p>
				<p>发现不一样的保险世界</p>
			</div>
			<a id="app_link"><button>下载APP</button></a>
			<img src="__PUBLIC__/app/img/dixia@2x.png" class="bottom" />
		</div>
		<script>
			var browser = {
	            versions: function() {
		             var u = navigator.userAgent,
			         app = navigator.appVersion;
		             return { 
			            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), 
			            android: u.indexOf('Android') > -1 , 
			            iphone: u.indexOf('iphone') > -1, 
			            ipad: u.indexOf('ipad') > -1,  
		             };
	           }(),
             }
          var applink = document.getElementById("app_link");
          if(browser.versions.iphone || browser.versions.ipad || browser.versions.ios) {
	             applink.href = "{$ios_url}";
            }
          if(browser.versions.android) {
	             applink.href = "{$android_url}";
            }
		</script>
	</body>
</html>
